package com.aliang.shopping.mapper;

import com.aliang.shopping.model.dto.common.PageDTO;
import com.aliang.shopping.model.po.UserInfo;
import com.aliang.shopping.model.vo.UserInfoVO;
import com.aliang.shopping.model.vo.chat.SimpleContactVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author ShiBaLover
 * @description 针对表【user_info(用户信息表)】的数据库操作Mapper
 * @createDate 2024-11-28 10:16:31
 * @Entity com.aliang.shopping.model.po.UserInfo
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    IPage<UserInfoVO> getPage(IPage<UserInfoVO> page, @Param("do") PageDTO pageDTO);

    Integer countPhoneAll(@Param("phone") String phone);

    Integer countEmailAll(@Param("email") String email);

    List<SimpleContactVO> getSimpleContactById(@Param("ids") List<Long> contactIds);

    List<SimpleContactVO> getAvatarById(@Param("ids") Set<Long> userIds);

    List<SimpleContactVO> getNameById(@Param("ids") Set<Long> collect);

    List<Long> selectIds();

    List<String> getMailById(@Param("ids") List<Long> ids);
}




